﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Test.Data {
	[Serializable()]
	public class DataBase : DataObject{
		public static readonly PackageProperty NameProperty = PackageProperty.Register("Name", typeof(String), typeof(DataBase));
		public static readonly PackageProperty VersionProperty = PackageProperty.Register("Version", typeof(Version), typeof(DataBase));
		public static readonly PackageProperty TablesProperty = PackageProperty.Register("Tables", typeof(PackageList<DataTable>), typeof(DataBase));

		public String Name {
			get {
				return this.GetValue(NameProperty) as String;
			}
			set {
				this.SetValue(NameProperty, value);
			}
		}
		public Version Version {
			get {
				return (Version)this.GetValue(VersionProperty);
			}
			set {
				this.SetValue(VersionProperty, value);
			}
		}
		public PackageList<DataTable> Tables {
			get {
				return this.GetValue(TablesProperty) as PackageList<DataTable>;
			}
			set {
				this.SetValue(TablesProperty, value);
			}
		}
	}
}
